<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script>
			
			window.onload = function(){
				
				console.log("页面加载完成了");
				
				setInterval(function(){
					
					var r = Math.floor(Math.random()*256);
					var g = Math.floor(Math.random()*256);
					var b = Math.floor(Math.random()*256);
					
					document.body.style.backgroundColor = "rgb(" + r + "," + g + "," + b + ")";
				
				},1000)
			}
			
		</script>
		
		
	</body>
</html>